package utils

import (
	"fmt"
	"reflect"
	"time"
)

func Udebug(args ...string) {
	println("################################################")
	for _, x := range args {
		println(x)
	}
	println("################################################")
}

func Utypeof(i interface{}) {
	str_type := reflect.TypeOf(i).Kind()
	fmt.Println(str_type)
}

// get_var_value = reflect.ValueOf

func Utime_now() string {
	now := time.Now()
	return now.String()
}

func Uassert(condition bool, msg string) {
	if !condition {
		panic(msg)
	}
}

func Uerror(err error, msg string) {
	Uassert(err != nil, msg)
}
